<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Repositories\System\UserActionLog;

class UserActionLogController extends Controller {

	protected $logger;

	public function __construct(UserActionLog $logger) {
		$this->logger = $logger;
	}

	/**
	 * @param Request $request
	 * @return \Illuminate\View\View
	 */
	public function UserLoginRecords(Request $request) {

		$list = $this->logger->condition($request->input('search'))->paginate();

		return view('admin.log.UserLoginRecords', compact('list'));
	}

}
